package com.ai.spring.common.util;

import lombok.Data;

/**
 * 结果返回值
 *
 * @author 石头
 * @Date 2019/10/28
 * @Version 1.0
 **/
@Data
public class ResponseResult<T> {
    /**返回码*/
    private Integer code;
    /**返回数据*/
    private T data;
    /**错误信息*/
    private String msg;

    public ResponseResult(T data,Integer code){
        this.data = data;
        this.code = code;
    }
    public ResponseResult(String msg,Integer code){
        this.msg = msg;
        this.code = code;
    }
}
